<?php

namespace App\Modules\User;

use App\Modules\AdapterApi;
use App\Services\User\UserIndex;
use Illuminate\Support\Facades\Request;


/**
 * Class Token 用户token应用层
 * @package App\Modules\User
 */
class Token extends AdapterApi
{
    /**
     * 获取token
     */
    public function getToken ()
    {
        $seed = [
            'create_ip'         => Request::ip(),
            'create_app_key'    => '',
            'other_info'        => '{}'
        ];

        return UserIndex::Token()->create($seed);
    }
}
